import users from '../db/userdb.js'

async function fnGUsers( ctx, next){
	ctx.reponse.body = users;
}
async function fnGUser( ctx, next){
	const id = ctx.params.id;
	ctx.body = `user+${id}`
}
async function fnPOUser( ctx, next){
	ctx.body  ='add'
}
async function fnPUUser( ctx, next){
	ctx.body = 'update'
}
async function fnDUser( ctx, next){
	ctx.body = 'delete'
}

export const object = {
	"get@/users": fnGUsers,
	"get@/user/:id": fnGUser,
	"post@/user": fnPOUser,
	"put@/user/: id": fnPUUser,
	"delete@/uesr": fnDUser
}